FROM openjdk:17-jdk-slim
RUN rm -rf /etc/localtime && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
WORKDIR /opt
COPY ./target/file-repository-rest.jar ./
ENTRYPOINT java ${JAVA_OPT} -jar file-repository-rest.jar